home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Audio
/
Patchmix
/
XWindowsSource
/
list.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-28
|
894b
|
44 lines
/* $Header: list.h,v 1.1 90/08/27 17:10:50 mara Exp $
*
* list.h
*
* Written by Mara Helmuth
*
* Description: List class declaration
* for Cmix X graphical interface
*
* $Log: list.h,v $
* Revision 1.1 90/08/27 17:10:50 mara
* Initial revision
*
* Revision 1.2 90/01/30 11:07:05 mara
* *** empty log message ***
*
* Revision 1.1 90/01/21 12:42:59 mara
* Initial revision
*
*/
class node {
friend class list;
private:
node* next;
char* contents;
};
class list {
private:
node* head;
node* top;
int size;
public:
list(int s) { head = 0; top = 0; size = s; };
void insert(char*); // put item into beginning of list
void append(char*); // put item at end of list
char* get(); // get item from list
void rewind_list() { head = top; }; // go to beg of list
void clear(); // remove list
~list() { clear(); };
};